compatibility
目次
Plugin Compatibility (v2.x)
このコンテンツはまだ日本語訳がありません。
This page defines how plugin compatibility is preserved across simply-xp v2 releases.
Stability Rules
Section titled “Stability Rules”- Existing plugin required fields (
name,initialize) are stable in v2.x. - Existing
XPClientfields used by plugins remain available in v2.x. registerPlugins()remains awaitable (Promise<void>) and keeps isolated plugin failure handling.- Existing event callback names and semantics remain stable in v2.x.
XpEvents.add(),Database.namespace(),Plugin.destroy()andunregisterPlugins()are stable in v2.x.
Additive Changes Allowed
Section titled “Additive Changes Allowed”- New optional fields can be added to the
Plugintype. - New optional runtime helpers can be introduced for plugin tooling.
- New optional callbacks and hooks can be added.
Changes Deferred to Next Major
Section titled “Changes Deferred to Next Major”The following require a major release:
- Removing or renaming existing plugin required fields.
- Removing or renaming existing
XPClientfields. - Breaking
requiredVersionsmatching semantics. - Changing plugin registration from isolated failures to fail-fast behavior.
Versioning Recommendation
Section titled “Versioning Recommendation”For best v2 compatibility, prefer:
requiredVersions: ["2"]for plugins that support all v2 releases.requiredVersions: ["2.0"]for plugins tied to v2.0.x behavior.- Exact versions only when strictly required.